package com.liang.oss.adapter;

import com.liang.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.Collections;
import java.util.List;

public class AliOssAdapter implements StorageAdapter {

    @Override
    public void createBucket(String bucketName) {

    }

    @Override
    public void upload(MultipartFile file, String bucketName, String objectName) {

    }

    @Override
    public InputStream download(String bucketName, String objectName) {
        return null;
    }

    @Override
    public List<String> listBuckets() {
        return Collections.singletonList("aliyun");
    }

    @Override
    public List<FileInfo> listObjects(String bucketName) {
        return Collections.emptyList();
    }

    @Override
    public void removeBucket(String bucketName) {

    }

    @Override
    public void removeObject(String bucketName, String objectName) {

    }

    @Override
    public String getUrl(String bucketName, String objectName) {
        return "";
    }
}
